package com.demo.security.core;

import org.springframework.context.support.MessageSourceAccessor;
import org.springframework.context.support.ResourceBundleMessageSource;
import org.springframework.security.core.SpringSecurityMessageSource;

/**
 * 安全信息I18N资源
 * 该对象提供安全相关的国际化信息
 * 
 * @author ryuu.kk
 * 
 */
public class SecurityMessageSource extends ResourceBundleMessageSource {

	public SecurityMessageSource() {
		setBasename("com.demo.security.messages");
	}

	public static MessageSourceAccessor getAccessor() {
		return new MessageSourceAccessor(new SecurityMessageSource());
	}
}
